<%= show_info %>

<%= render :partial => '/user/current_catalog' %>

<p>
<%= generate(@path) %>
</p>

<%= link_to "List Pictures(#{@picture_count})", :controller => "user/picture", :action => 'list'%><br/>

<hr />
  
<% if( @catalogs.size > 0 ) %>
<div class="thumbnail_container">

<div class="spacer"> &nbsp </div>
<% for catalog in @catalogs %>
  <div class="thumbnail">
    <p>
      <%= link_to (       
          image_tag("/user/catalog/get_folder_picture?", :size => "100x100", :alt => "Loading"),
          :action => 'list', :id => catalog) %>
    </p>
    <p><%= h(catalog.name) %></p>
  </div>
<% end %>
<div class="spacer"> &nbsp </div>

</div>
<% end %>

<%= will_paginate @catalogs %>

<hr />

<% if @user && @user == @current_catalog.owner %>
  <%= link_to 'Edit Current Catalog', :action => 'edit'%> |
  <% if @current_catalog.parent %>
      <%= link_to 'Destroy Current Catalog', { :action => 'destroy'},
        :confirm => 'Are you sure? This will delete the whole subtree routed here.', :method => :post %> |
  <% end %>
  <%= link_to 'Create New Subcatalog', :action => 'new' %><br/>
<% end %>